﻿using Redbrick.Silverlight.Common;
using System;
using System.ComponentModel;

namespace Moria
{


	public class MoriaObject : Observable
	{

		public event EventHandler<MessageEventArgs> OnMessage;

		protected void Message(string msg, params object[] items)
		{
			this.Message(string.Format(msg, items));
		}
		protected void Message(string msg)
		{
			var handler = this.OnMessage;
			if (handler != null)
				handler(this, new MessageEventArgs(msg));
		}

	}
}
